CVE-2025-37997
netfilter: ipset: fix region locking in hash types
Description
In the Linux kernel, the following vulnerability has been resolved: netfilter: ipset: fix region locking in hash types Region locking introduced in v5.6-rc4 contained three macros to handle the region locks: ahash_bucket_start(), ahash_bucket_end() which gave back the start and end hash bucket values belonging to a given region lock and ahash_region() which should give back the region lock belonging to a given hash bucket. The latter was incorrect which can lead to a race condition between the garbage collector and adding new elements when a hash type of set is defined with timeouts.
INFO
Published Date :
May 29, 2025, 2:15 p.m.
Last Modified :
Dec. 16, 2025, 8:20 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update the Linux kernel to a patched version.
- Apply the netfilter: ipset fix for hash types.
- Ensure region locking is correctly implemented.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-37997.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-37997 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-37997
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-37997 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-37997 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Dec. 16, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-667 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:5.6:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:5.6:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:5.6:-:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:5.6:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:5.6:rc7:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.15:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.15:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.14.7 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.29 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.91 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.139 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.183 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.4.24 up to (excluding) 5.4.294 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5.8 up to (excluding) 5.6 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.6.1 up to (excluding) 5.10.238 Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* Added Reference Type kernel.org: https://git.kernel.org/stable/c/00cfc5fad1491796942a948808afb968a0a3f35b Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/226ce0ec38316d9e3739e73a64b6b8304646c658 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/6e002ecc1c8cfdfc866b9104ab7888da54613e59 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/82c1eb32693bc48251d92532975e19160987e5b9 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/8478a729c0462273188263136880480729e9efca Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/a3dfec485401943e315c394c29afe2db8f9481d6 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/aa77294b0f73bb8265987591460cd25b8722c3df Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/e2ab67672b2288521a6146034a971f9a82ffc5c5 Types: Patch Added Reference Type CVE: https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html Types: Third Party Advisory Added Reference Type CVE: https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html Types: Third Party Advisory -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 03, 2025
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 03, 2025
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 04, 2025
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/00cfc5fad1491796942a948808afb968a0a3f35b Added Reference https://git.kernel.org/stable/c/226ce0ec38316d9e3739e73a64b6b8304646c658 -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 29, 2025
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: netfilter: ipset: fix region locking in hash types Region locking introduced in v5.6-rc4 contained three macros to handle the region locks: ahash_bucket_start(), ahash_bucket_end() which gave back the start and end hash bucket values belonging to a given region lock and ahash_region() which should give back the region lock belonging to a given hash bucket. The latter was incorrect which can lead to a race condition between the garbage collector and adding new elements when a hash type of set is defined with timeouts. Added Reference https://git.kernel.org/stable/c/6e002ecc1c8cfdfc866b9104ab7888da54613e59 Added Reference https://git.kernel.org/stable/c/82c1eb32693bc48251d92532975e19160987e5b9 Added Reference https://git.kernel.org/stable/c/8478a729c0462273188263136880480729e9efca Added Reference https://git.kernel.org/stable/c/a3dfec485401943e315c394c29afe2db8f9481d6 Added Reference https://git.kernel.org/stable/c/aa77294b0f73bb8265987591460cd25b8722c3df Added Reference https://git.kernel.org/stable/c/e2ab67672b2288521a6146034a971f9a82ffc5c5